<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<!--
margin-right:10px;
-->

<xsl:template match="row">

<div style="padding-bottom:5px;">
<b>Eventi in approvazione</b></div>
<div style="padding-left:10px;">

	<div style="padding:2px;">
	<xsl:choose>
		<xsl:when test="floor( @authlevel div 8 ) mod 2 or floor( @authlevel div 32768 ) mod 2">
	<xsl:choose>
	<xsl:when test='@wactu&gt;0 or @wacts&gt;0'><a href="/admin/activitiesWaiting4Approval.aspx">Proposti da utenti <span style="color:red;" class="bodyB"><xsl:value-of select="@wactu"/></span>, proposti da staff <span style="color:red;" class="bodyB"><xsl:value-of select="@wacts"/></span></a></xsl:when>
	<xsl:otherwise>Proposti da utenti <span style="color:black;" class="bodyB"><xsl:value-of select="@wactu"/></span></xsl:otherwise>
	</xsl:choose>
		</xsl:when>
		<xsl:otherwise>
	<xsl:choose>
	<xsl:when test='@wactu&gt;0 or @wacts&gt;0'>Proposte da utenti <span style="color:red;" class="bodyB"><xsl:value-of select="@wactu"/></span>, proposte da staff <span style="color:red;" class="bodyB"><xsl:value-of select="@wacts"/></span></xsl:when>
	<xsl:otherwise>Proposti da utenti <span style="color:black;" class="bodyB"><xsl:value-of select="@wactu"/></span></xsl:otherwise>
	</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
	</div>

</div>

<hr/>

<div style="padding:5px;"><b>Eventi online</b></div>
<div style="padding-left:10px;">

	<div style="padding:2px;">
	<xsl:choose>
		<xsl:when test="floor( @authlevel div 4 ) mod 2 or floor( @authlevel div 32768 ) mod 2 or floor( @status div 4 ) mod 2">
			<a href="/admin/activitiesAll.aspx">Tutte <span style="color:blue;" class="bodyB"><xsl:value-of select="@pact"/></span></a>
		</xsl:when>
		<xsl:otherwise>
			Da utenti <span style="color:blue;" class="bodyB"><xsl:value-of select="@pact"/></span>
		</xsl:otherwise>
	</xsl:choose>
	</div>

</div>

<hr/>

<div style="padding:5px;"><b>Eventi passati</b></div>
<div style="padding-left:10px;">

	<div style="padding:2px;">
	</div>

		<div style="padding:2px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 4 ) mod 2 or floor( @authlevel div 1024 ) mod 2">
				<a href="/admin/activitiesAllStaff.aspx?old=1">Da staff	<span style="color:blue;" class="bodyB"><xsl:value-of select="@oacts"/></span></a>
			</xsl:when>
			<xsl:otherwise>
				Da staff <span style="color:blue;" class="bodyB"><xsl:value-of select="@oacts"/></span>
			</xsl:otherwise>
		</xsl:choose>
		</div>
		<!--
		<div style="padding:5px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 4 ) mod 2">
				<a href="/admin/activitiesAll.aspx?old=1">Da utenti <span style="color:blue;" class="bodyB"><xsl:value-of select="@oactu"/></span></a>
			</xsl:when>
			<xsl:otherwise>
				Da utenti <span style="color:blue;" class="bodyB"><xsl:value-of select="@oactu"/></span>
			</xsl:otherwise>
		</xsl:choose>
		</div>

	-->

</div>

<hr/>

<div style="padding:5px; float:left;"><img src="/imgs/pics.gif"/></div>
<div style="padding:5px;"><b>Gallery di eventi da approvare</b></div>
<div style="clear:left;padding-left:10px;">

	<div style="padding:2px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 8 ) mod 2 or floor( @authlevel div 1024 ) mod 2">
		<xsl:choose>
		<xsl:when test='@wgalu&gt;0 or @wgals&gt;0'><a href="/admin/galleriesWaiting4Approval.aspx"><span style="color:red;" class="body"><xsl:value-of select="@wgalu"/> da utenti, </span> <span style="color:red;" class="body"><xsl:value-of select="@wgals"/> da staff </span></a></xsl:when>
		<xsl:otherwise><span style="color:grey;" class="body">Nessuna gallery da approvare.</span></xsl:otherwise>
		</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
		<xsl:choose>
		<xsl:when test='@wgalu&gt;0 or @wgals&gt;0'><span style="color:red;" class="body"><xsl:value-of select="@wgalu"/> da utenti, </span> <span style="color:red;" class="body"><xsl:value-of select="@wgals"/> da staff </span></xsl:when>
		<xsl:otherwise><span style="color:grey;" class="body">Nessuna gallery da approvare.</span></xsl:otherwise>
		</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</div>

</div>

<hr/>

<div style="padding:5px;"><b>Circolari</b></div>

<div style="padding-left:10px;">

	<div style="padding:2px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 8 ) mod 2 and @pvtsU&gt;0">
				<a href="/admin/pvtsWaiting4Approval.aspx">Da utenti
					<span style="color:red;" class="bodyB"><xsl:value-of select="@pvtsU"/></span>
				</a>
			</xsl:when>
			<xsl:when test="@pvtsU&gt;0">
				 Da utenti <span style="color:red;" class="bodyB"><xsl:value-of select="@pvtsU"/></span>
			</xsl:when>
			<xsl:otherwise>
				 Da utenti <span style="color:black;" class="bodyB">0</span>
			</xsl:otherwise>
		</xsl:choose>
	</div>

	<div style="padding:2px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 8 ) mod 2 and @pvtsS&gt;0">
				<a href="/admin/pvtsWaiting4Approval.aspx">Da staff
					<span style="color:red;" class="bodyB"><xsl:value-of select="@pvtsS"/></span>
				</a>
			</xsl:when>
			<xsl:when test="@pvtsS&gt;0">
				 Da staff <span style="color:red;" class="bodyB"><xsl:value-of select="@pvtsS"/></span>
			</xsl:when>
			<xsl:otherwise>
				 Da staff <span style="color:black;" class="bodyB">0</span>
			</xsl:otherwise>
		</xsl:choose>


	</div>

</div>

<hr/>

<div style="padding:5px; float:left;"><img src="/imgs/argh_s.gif"/></div>
<div style="padding:5px;"><b>Feedback</b></div>
<div style="clear:left;padding-left:10px;">

	<div style="padding:2px;">
		<xsl:choose>
			<xsl:when test="floor( @authlevel div 8 ) mod 2">
		<xsl:choose>
		<xsl:when test='@fdbck&gt;0'><a href="/admin/feedbackAll.aspx">Da staff <span style="color:red;" class="bodyB"><xsl:value-of select="@fdbck"/></span></a></xsl:when>
		<xsl:otherwise>Da staff <span style="color:black;" class="bodyB">0</span></xsl:otherwise>
		</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
		<xsl:choose>
		<xsl:when test='@fdbck&gt;0'>Da staff <span style="color:red;" class="bodyB"><xsl:value-of select="@fdbck"/></span></xsl:when>
		<xsl:otherwise>Da staff <span style="color:black;" class="bodyB">0</span></xsl:otherwise>
		</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</div>

</div>

<hr/>

<div style="padding:5px;"><b>Locali</b></div>
<div style="padding-left:10px;">
	<xsl:choose>
		<xsl:when test="floor( @authlevel div 512 ) mod 2">
			<div style="padding:5px;">
			<xsl:choose>
			<xsl:when test='@locsA&gt;0'><a href="/admin/locali.aspx?life=1"><span style="color:red;" class="bodyB"><xsl:value-of select="@locsA"/></span> locali attivi</a></xsl:when>
			<xsl:otherwise><span style="color:black;" class="bodyB"><xsl:value-of select="@locsA"/></span> locali attivi</xsl:otherwise>
			</xsl:choose>
			</div>
			<div style="padding:5px;">
			<xsl:choose>
			<xsl:when test='@locsD&gt;0'><a style="color:gray;" href="/admin/locali.aspx?life=2"><span style="color:gray;" class="bodyB"><xsl:value-of select="@locsD"/></span> locali spenti</a></xsl:when>
			<xsl:otherwise><span style="color:black;" class="bodyB"><xsl:value-of select="@locsD"/></span> locali spenti</xsl:otherwise>
			</xsl:choose>
			</div>
			<div style="padding:5px;">
        <!--
			<xsl:choose>
			<xsl:when test='@locsP&gt;0'><a style="color:blue;" href="/admin/locali.aspx?life=4"><span style="color:blue;" class="bodyB"><xsl:value-of select="@locsP"/></span> locali proposti</a></xsl:when>
			<xsl:otherwise><span style="color:black;" class="bodyB"><xsl:value-of select="@locsP"/></span> locali proposti</xsl:otherwise>
			</xsl:choose>
			<p/>
			 &#160;&#160;
       -->
			<a href="/locali/localeedit.aspx">Inserisci nuovo locale</a>
			</div>
		</xsl:when>
		<xsl:otherwise>
	<xsl:choose>
	<xsl:when test='@locsA&gt;0'>Locali attivi: <span style="color:red;" class="bodyB"><xsl:value-of select="@locsA"/></span></xsl:when>
	<xsl:otherwise>Locali attivi: <span style="color:black;" class="bodyB"><xsl:value-of select="@locsA"/></span></xsl:otherwise>
	</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
</div>


</xsl:template>

</xsl:stylesheet>